class Solution
{
public:
    string maximumOddBinaryNumber(string s)
    {
        int zeroCount = count(s.begin(), s.end(), '0');
        int oneCount = s.size() - zeroCount;
        return string(oneCount - 1, '1') + string(zeroCount, '0') + "1";
    }
};